package com.miyu.system.controller.system;

import com.alibaba.fastjson2.JSONObject;
import com.miyu.system.service.system.RedisService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * Redis 控制器
 *
 * @author longm
 * @date 2025/05/05
 */
@RestController
@RequestMapping("/redis")
@RequiredArgsConstructor
public class RedisController {
    /**
     * Redis 服务
     */
    private final RedisService redisService;

    /**
     * 查询 redis 大 key 列表
     *
     * @return
     * @throws Exception
     */
    @RequestMapping("/queryRedisInfo")
    public JSONObject queryRedisInfo() {
        return redisService.queryRedisInfo();
    }

}
